package com.tm.controllerTryCatch;

import com.tm.util.RestReturnModel;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author huangp
 * @create 2021-09-13 15:56
 */
//@RestControllerAdvice
public class TmExceptionHandler {

    @ExceptionHandler(Exception.class)
    public RestReturnModel getExceptionHandler(){

       return RestReturnModel.ERROR();
    }
}
